<script setup lang="ts">
import menuStore from '@/Composables/menuStore';
const route = menuStore.route.value
</script>
<template>
  <el-breadcrumb separator="/">
    <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
    <template v-if="route?.matched.length">
      <el-breadcrumb-item :to="{ path: r.path }" v-for="(r, index) of route.matched" :key="index">
        {{r.meta.menu?.title}}
      </el-breadcrumb-item>
    </template>
  </el-breadcrumb>
</template>
<style scoped lang="scss">

</style>
